package com.itbaizhan.controller;

import com.itbaizhan.openfeign.PaymentService;
import com.itbaizhan.service.AccountInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author spf
 * @date 2024/4/24
 * @time 9:14
 */
@RestController
@Slf4j
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private AccountInfoService accountInfoService;

    @GetMapping("/query")
    public String query(@RequestParam("txNo") String txNo){
        return accountInfoService.findPayInfo(txNo);
    }

}
